﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Hartley.ApplicationLogic;
using Hartley.DTOs;

namespace WebApplication1
{
    public partial class viewMeetingById : System.Web.UI.Page
    {
        MemberAL memberAL = new MemberAL();
        protected void Page_Load(object sender, EventArgs e)
        {
            string meetingId = Request.QueryString.ToString();
            List<MeetingDTO> meeting = memberAL.GetAllMeetingNameById(new Guid(meetingId)).ToList();
            List<MinutesDTO> allTheMinutesOfthisMeeting = memberAL.GetAllMinutesOfMeeting(new Guid(meetingId)).ToList();

            dvViewMeetingId.DataSource = meeting;
            dvViewMeetingId.DataBind();

            hlviewAllMinutesOfMeeting.NavigateUrl = "viewAllMintes.aspx?" + meetingId;
        }
    }
}
